load("@io_bazel_rules_go//go:def.bzl", "go_test")

go_test(
    name = "resourcegroup_test",
    timeout = "short",
    srcs = ["resource_group_test.go"],
    flaky = True,
    race = "on",
    shard_count = 5,
    deps = [
        "//pkg/ddl/resourcegroup",
        "//pkg/ddl/util/callback",
        "//pkg/domain",
        "//pkg/domain/infosync",
        "//pkg/errno",
        "//pkg/parser/auth",
        "//pkg/parser/model",
        "//pkg/sessionctx",
        "//pkg/testkit",
        "@com_github_pingcap_failpoint//:failpoint",
        "@com_github_pingcap_kvproto//pkg/resource_manager",
        "@com_github_stretchr_testify//require",
    ],
)
